package com.cy.mall.service.customer;

import com.cy.mall.model.domain.customer.CustomerWechat;

/**
 * @Description 客户-微信 服务
 * @Author tanyilin
 * @Date 2019/3/15 11:24
 */
public interface CustomerWechatService {

    /**
     * 通过 customerId 查询客户-微信关系CustomerWechat
     * @param customerId
     * @return com.cy.mall.model.domain.customer.CustomerWechat
     */
    CustomerWechat selectByCustomerId(Long customerId);

    /**
     * 通过 openId 查询客户-微信关系CustomerWechat
     * @param openId
     * @return com.cy.mall.model.domain.customer.CustomerWechat
     */
    CustomerWechat selectByOpenId(String openId);

    /**
     * 新增客户-微信关系CustomerWechat
     * @param customerWechat
     * @return void
     */
    void insertCustomerWechat(CustomerWechat customerWechat);

    /**
     * 更新客户-微信关系CustomerWechat
     * @param customerWechat
     * @return void
     */
    void updateCustomerWechat(CustomerWechat customerWechat);

    /**
     * 删除客户-微信关系CustomerWechat
     * @param customerWechat
     * @return void
     */
    void deleteCustomerWechat(CustomerWechat customerWechat);
}
